package com.xyf.sys.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel(description = "商品信息表")
public class SysProduct {
    private Long id;
    @ApiModelProperty(value = "商品标题")
    private String name;
    @ApiModelProperty(value = "商品分类编号", example = "1")
    private Long categoryId;
    @ApiModelProperty(value = "类型编号", example = "1")
    private Byte typeId;
    @ApiModelProperty(value = "简述")
    private String sketch;
    @ApiModelProperty(value = "商品描述")
    private String intro;
    @ApiModelProperty(value = "商品关键字")
    private String keywords;
    @ApiModelProperty(value = "标签")
    private String tags;
    @ApiModelProperty(value = "单位")
    private String unit;
    @ApiModelProperty(value = "商品价格", example = "100.00")
    private BigDecimal price;
    @ApiModelProperty(value = "市场价格", example = "120.00")
    private BigDecimal marketPrice;
    @ApiModelProperty(value = "库存量", example = "100")
    private Integer stock;
    @ApiModelProperty(value = "库存警告", example = "10")
    private Integer warningStock;
    @ApiModelProperty(value = "封面图")
    private String pictureUrl;
    @ApiModelProperty(value = "供应商id")
    private String userId;
    @ApiModelProperty(value = "状态", allowableValues = "-1, 0, 1, 2", example = "1")
    private Byte status;
    @ApiModelProperty(value = "审核状态", allowableValues = "-1, 0, 1", example = "0")
    private Byte state;
    @ApiModelProperty(value = "排序", example = "99")
    private Integer sort;
    @ApiModelProperty(value = "删除标志", allowableValues = "0, 1", example = "0")
    private String delFlag;

    private String createBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    private String updateBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    private String remark;

}